This file contains code snippets that changed from FP1 to FP2. Lines marked by /// (xxx) are FP1 lines that are being replaced; the brackets indicate the lines

Remove the "slide-out-div-chat" class from the chatPanel tab

webChatUI.js code to display the chat panel (FP2); it now displays as a jQuery UI dialog. Add this inside the $(function()) entry, replacing any mention of $('#liveChatLink').
$('#liveChatLink').click(function(event) {
        event.preventDefault();
        $('#liveChatLink').hide();
        $('#chatPanel').dialog({
            width : 400,
            height : 'auto',
            dialogClass: 'fixedPosition'
        }).on('dialogclose', function(event) {
            $('#liveChatLink').show();
            if (webSocket !== undefined) {
                webSocket.close();
            }
        });
});

webChatLogon.js code to gather logon details; this was required to work with the UI dialog change. Replace the following lines (118 and 132) in webChatLogon.js/gatherDetails
/// (118)   var tmpNumber = country + area + phone
            var tmpNumber = phone;
/// (132)   avayaGlobal.setSessionStorage('phone', JSON.stringify(l_phone));
            avayaGlobal.setSessionStorage('phone', phone);
    
Replace the following lines (187-189) in webChat.js/chatLogin
/// 'country' : phone.country
/// 'area' : phone.area,
/// 'phone' : phone.phone,
    'country' : '',
    'country' : '',
    'country' : phone
    
Replace lines 317-318 inside webChat.js/initChat() with the following:
/// (317)   var phone = avayaGlobal.getSessionStorage('phone');
/// (319)   webChat.g_phone = JSON.parse(phone);
            webChat.g_phone = avayaGlobal.getSessionStorage('phone');

Set the following inputs to "hidden" inside home.html:

<select id="country-chat" class="formField"></select>
<input hidden type="text" id="area-chat" >
<select id="contactType">
<input type="text" id="address-chat" >

